cmake_minimum_required(VERSION 3.8)
project(service_srv_interface)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
# rosidl_default_generators 必须加
find_package(rosidl_default_generators REQUIRED)
set(srv_files
  "srv/QuestionAndAnswer.srv"
)

rosidl_generate_interfaces(${PROJECT_NAME}
  ${srv_files}
  DEPENDENCIES 
)
ament_export_dependencies(rosidl_default_runtime)
ament_package()
